<?php
error_reporting(0);
$isadmin=1; 
include '../comm/config.php';
include 'check.php';
$adtype =$_POST["adtype"]; 
$content =stripcslashes($_POST['content']); 
$content =addslashes($content); 
$sj= date("Y-m-d H:i:s"); 


$q = "insert into ".$BIAOTOU."ad (adtype,content,addtime) values('".$adtype."','".$content."','".$sj."')";
mysql_query($q);
admin_log('新增广告');
mysql_close();
echo "<script language=javascript>alert('广告添加成功！即将跳转到广告管理...');window.location='adlist.php'</script>";
?>
